/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.upc.dew.cobranzas.controller;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import pe.edu.upc.dew.cobranzas.dao.CuotaDao;
import pe.edu.upc.dew.cobranzas.service.CuotaService;

/**
 *
 * @author Ivan
 */
public class CuotaServlet extends HttpServlet {

    CuotaService cuotaService = new CuotaService();

    public CuotaServlet() {
        this.cuotaService = new CuotaService();
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        //HttpSession session = request.getSession();
        //Integer idContrato = Integer.parseInt(request.getParameter("contratoSeleccionado"));
       // request.setAttribute("cuotas",this.cuotaService.Listado());

        request.getRequestDispatcher("cuotas.jsp").forward(request, response);
    }
}
